 
<script FOR="RVOCX" EVENT="OnPresentationClosed()" LANGUAGE="javascript">
	try { // realplayer continuous play script
		var d = MM_findObj,D=d("Dx");
		if (CONTINUOUS=="1") {
			 fb_edit ('f',<?= $f+1 ?>,'s',D.scrollLeft,'t',D.scrollTop,'w',D.offsetWidth,'cc', '1');
		}
	} catch (ex) { window.status=ex.message }
</script> 
<script FOR="RVOCX" EVENT="OnPresentationOpened  ()" LANGUAGE="javascript">
	// alert (1) 
	try { 
		var d=MM_findObj,X=d("Dx"),W=d("RVOCX");  
		if (W.offsetHeight>10) {
			iw = W.GetClipHeight ();
			ih = W.GetClipWidth ();
			// alert (iw)
			// alert (ih)
			ratio = iw/ih;  
			nh    = "<?= $mh ?>"; // resize by width 
			nw    = ratio*nh; 
			W.style.border ="solid 1px #FF0099"; 
			W.style.width  = nw;
			W.style.height = nh;
		} else W.style.border = "none";  
	} catch (ex) { alert (ex.message) }
</script> 
<script language="javascript"> 
var aspect=0;
function SetRVOCXSlider () {
		var d = MM_findObj,D=d("Dx"),W=d("RVOCX"),DD=d("dprogpic"),DP=d("progpic"),WP=d("wmpstatus")
	try {
	
	   if (aspect==0) {
	      W.DoStop();
		  W.SetMaintainAspect (true);
		  W.DoPlay();
		  aspect=1;
		  hidestatus();
	   }
	
		var P = W.GetPosition();
		var D = W.GetLength(); 
		var R = P/D;
		var S = D-P; 
		
		if (S==0&&CONTINUOUS=="1"&&aspect==1) {
			 fb_edit ('f',<?= $f+1 ?>,'s',D.scrollLeft,'t',D.scrollTop,'w',D.offsetWidth,'cc', '1');
		}
		
		DD.style.width = W.offsetWidth;er=0;
		DP.width=DD.offsetWidth*R;er++;
		WP.innerHTML = secs(P)+"/<font color=gray>"+secs(D)+"</font>";er++;
		
		iw = W.GetClipWidth  ();er++;
		if (iw) {
			ih = W.GetClipHeight ();er++;
			ratio = iw/ih;  er++;
			nh    = ih * "<?= $mz ?>";er++; // resize by width 
			nw    = ratio*nh; er++;
			if (W.offsetWidth!=nw) { 
			// alert ("<?= $ih ?>")
				W.style.width  = nw;
				W.style.height = nh;  
			}		
		}		
		
		
		
	} catch (ex) { showstatus(er+" "+ex.message,'slateblue') }
	window.setTimeout ("SetRVOCXSlider ()", 1000);
} 
function secs (i) {
   i=i/1000;
   var hh=parseInt(i/3600);
   var mm=parseInt((i-(hh*3600))/60);
   var ss=parseInt(i-((hh*3600)+(mm*60)));
   hh=hh<10?"0"+hh:hh;
   mm=mm<10?"0"+mm:mm;
   ss=ss<10?"0"+ss:ss;
   return hh+":"+mm+":"+ss;
}
function slidermove(a) {
    var d = MM_findObj,D=d("dprogpic"),x=docx(D);
	var T = RVOCX.GetLength();
	var X = window.event.x; 
	var E = event.srcElement; 
	if (E.id.indexOf("rogpic")>0) {
	   var mx=(X-x)/D.offsetWidth;
	   RVOCX.SetPosition(T*mx);
	}  else window.status = E.id
}
function slidertitle(a) {
    var d = MM_findObj,D=d("dprogpic"),x=docx(D);
	var T = RVOCX.GetLength();
	var X = window.event.x; 
	var E = event.srcElement; 
	if (E.id.indexOf("rogpic")>0) {
	   var mx=(X-x)/D.offsetWidth;
	   E.title = secs(T*mx);
	}  else window.status = E.id
}
function RepositionTrack(a) {
	var T = RVOCX.GetPosition();
	RVOCX.SetPosition(T+(a*1000));
	// WMP.CurrentPosition += parseInt(a);	
}
function setContinuous() {
    var d = MM_findObj,C=d("l_ct");
    CONTINUOUS = CONTINUOUS=="1"?"":"1";
	if (C) C.style.backgroundColor=CONTINUOUS=="1"?"#FFFFFF":"#CCCCFF"; 
} 
SetRVOCXSlider (); 

if (document.all) {
	document.body.attachEvent ("onmousedown", slidermove);
	document.body.attachEvent ("onmousemove", slidertitle); 
}	
	
	
</script>